package com.cgc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cgc.dao.IEmpDao;
import com.cgc.entity.Emp;
import com.cgc.service.EmpService;

@Service
public class EmpServiceImpl extends BaseServiceImpl<Emp> implements EmpService<Emp> {

	public IEmpDao empDao;

	public IEmpDao getEmpDao() {
		return empDao;
	}

	@Autowired
	public void setEmpDao(IEmpDao empDao) {
		this.empDao = empDao;
		super.setBasedao(this.empDao);
	}

	@Override
	public Emp checkUser(String username, String pwd) {
		return empDao.checkUser(username, pwd);
	}

	@Override
	public void updatePwd(Integer id, String newPwd) {
		empDao.updatePwd(id, newPwd);
	}
	
	
	
	
}
